package com.ljh.sale.serviceImpl;

import com.ljh.sale.entity.Stock;
import com.ljh.sale.mapper.StockMapper;
import com.ljh.sale.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import tk.mybatis.mapper.common.Mapper;

/**
 * Created by DELL on 2018/10/8.
 */
public class StockServiceImpl extends BaseServiceImpl<Stock> implements StockService {
    @Autowired
    private StockMapper stockMapper;

    @Override
    protected Mapper<Stock> getMapper() {
        return stockMapper;
    }

    @Override
    public Stock findBySkuId(Long skuId) {
        return stockMapper.selectByskuId(skuId);
    }
}